package com.msy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @date 2020/11/18 - 16:14
 */
@Controller
public class pageContorller {
    @RequestMapping({"/index","/"})
    public String index(){
        return "index";
    }
    @RequestMapping("/tologin")
    public String toLogin(){
        return "views/login";
    }


    @RequestMapping("/l1/{id}")
    public String l1(@PathVariable("id") int id){
        return "views/l1/l1-"+id;
    }

    @RequestMapping("/l2/{id}")
    public String l2(@PathVariable("id") int id){
        return "views/l2/l2-"+id;
    }


    @RequestMapping("/l3/{id}")
    public String l3(@PathVariable("id") int id){
        return "views/l3/l3-"+id;
    }
}
